#define _CRT_SECURE_NO_WANINGS 1
#pragma warning(disable: 4996)

class Solution {
public:
    int convertInteger(int A, int B) {
        int tmp = A ^ B;

        int ret = 0;
        for (int i = 0; i < 32; ++i)
        {

            if ((tmp & (1 << i)) > 0)
            {
                ret++;
            }
        }
        return ret;
    }
};